package cn.kgc.searchservice.service;

import cn.kgc.searchservice.dao.SearchDao;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

public class SearchServiceImpl implements SearchService {

    @Autowired
    private SearchDao searchDao;

    @Override
    public List<Map<String, Object>> getNews(String keyword) {
        return searchDao.getNews(keyword);
    }
}
